<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()
</script>

<template>
  <div class="apps">
    <el-card style="max-width: 100%; height: 200px">
      <div class="title">快捷应用</div>
      <el-space wrap>
        <div class="app" @click="router.push('/randomSelect')">
          <div class="icon">
            <img src="@/assets/image/icon/dm.png" alt="" />
          </div>
          <div class="app-name">随机点名</div>
        </div>
        <div class="app" @click="router.push('/punishSelect')">
          <div class="icon">
            <img src="@/assets/image/icon/cf.png" alt="" />
          </div>
          <div class="app-name">惩罚抽取</div>
        </div>
        <div class="app" @click="router.push('/assign')">
          <div class="icon">
            <img src="@/assets/image/icon/zy.png" alt="" />
          </div>
          <div class="app-name">作业布置</div>
        </div>
      </el-space>

    </el-card>
  </div>
</template>

<style scoped>
.apps {
  margin-top: 10px;
  margin-bottom: 10px;
  .title {
    margin-bottom: 20px;
  }
  .app {
    height: 60px;
    width: 60px;
    cursor: pointer;
    img {
      height: 100%;
      width: 100%;
    }
    .app-name {
      padding-top: 10px;
      font-size: 15px;
    }
  }
}
</style>
